package com.jmb.waimao.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jmb.waimao.entity.EmailTemplate;

/**
 * Service interface for EmailTemplate
 */
public interface EmailTemplateService extends IService<EmailTemplate> {
    
    /**
     * Create a new email template
     * 
     * @param template Email template to create
     * @return Created email template
     */
    EmailTemplate createTemplate(EmailTemplate template);
    
    /**
     * Apply template variables
     * 
     * @param templateId Template ID
     * @param variables Variables to apply
     * @return Processed template with variables applied
     */
    EmailTemplate applyTemplateVariables(Long templateId, java.util.Map<String, String> variables);
}
